/*
 * User.h
 *
 *  Created on: 06/02/2013
 *
 */

#ifndef DATALOADER_H_
#define DATALOADER_H_

#include <string>
#include "CNet.h"
#include "util.h"

class DataLoader {

public:
	DataLoader();
	DataLoader(string userName, CClientSocket* clienteSocket);
	virtual ~DataLoader();
private:
	string userName;
	string otherPlayerName;
	CClientSocket* clienteSocket;
	bool winner;

public:
	CClientSocket* getClienteSocket(){return clienteSocket;};
	string getUserName(){return userName;};
	void setOtherUserName(string name){this->otherPlayerName = name;};
	void setClientScoket(CClientSocket* cSock ){this->clienteSocket = cSock;};
	void setWinner(bool state){this->winner = state;};
	bool getWinner(){return this->winner;};
	string getOtherUserName(){return otherPlayerName;};
};

#endif /* USER_H_ */
